package com.hp.controller;

import com.hp.service.AgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
public class AgentController {
    @Autowired
    private AgentService agentService;

    // 查询群验证消息
    @PostMapping("selectAgentVerifications")
    public HashMap<String, Object> selectAgentVerifications(int userId) {
        return agentService.selectAgentVerifications(userId);
    }

    @PostMapping("selectAgentHouses")
    public HashMap<String, Object> selectAgentHouses(int userId) {
        return agentService.selectAgentHouses(userId);
    }
}
